
FIND_PACKAGE(GTest REQUIRED)

INCLUDE(GoogleTest)

ENABLE_TESTING()

SET(TEST_SRC_FILES 

	demo_test.cpp
)


SOURCE_GROUP(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${TEST_SRC_FILES})

ADD_EXECUTABLE(
	${YATE_MODULE_TARGET}_test 
	${TEST_SRC_FILES}
)

SET_PROPERTY(TARGET ${YATE_MODULE_TARGET}_test PROPERTY FOLDER "modules-demo")

TARGET_LINK_LIBRARIES(
	${YATE_MODULE_TARGET}_test 
	GTest::gtest_main
)

gtest_discover_tests(${YATE_MODULE_TARGET}_test )

